<?php

use yii\db\Migration;
use yii\db\Schema;

class m170901_031348_ADD_COLUMN_RECEIVE_TYPE extends Migration
{
    public function up()
    {

         $this->addColumn('{{receive_account}}', 'type', Schema::TYPE_INTEGER. "(1)  DEFAULT  '0' COMMENT '1 收款账号对应的类型' ");
    }

    public function down()
    {
        echo "m170901_031348_ADD_COLUMN_RECEIVE_TYPE cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
